Optimal. Leaf size=29 \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \coth ^2(x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {3751, 455, 65,
214} \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \coth ^2(x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 455
Rule 3751
Rubi steps
\begin {align*} \int \frac {\coth (x)}{\sqrt {a+b \coth ^2(x)}} \, dx &=\text {Subst}\left (\int \frac {x}{\left (1-x^2\right ) \sqrt {a+b x^2}} \, dx,x,\coth (x)\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{(1-x) \sqrt {a+b x}} \, dx,x,\coth ^2(x)\right )\\ &=\frac {\text {Subst}\left (\int \frac {1}{1+\frac {a}{b}-\frac {x^2}{b}} \, dx,x,\sqrt {a+b \coth ^2(x)}\right )}{b}\\ &=\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \coth ^2(x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 29, normalized size = 1.00 \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \coth ^2(x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(113\) vs.
\(2(23)=46\).
time = 0.83, size = 114, normalized size = 3.93
method | result | size |
derivativedivides | \(\frac {\ln \left (\frac {2 a +2 b -2 b \left (1+\coth \left (x \right )\right )+2 \sqrt {a +b}\, \sqrt {b \left (1+\coth \left (x \right )\right )^{2}-2 b \left (1+\coth \left (x \right )\right )+a +b}}{1+\coth \left (x \right )}\right )}{2 \sqrt {a +b}}+\frac {\ln \left (\frac {2 a +2 b +2 b \left (\coth \left (x \right )-1\right )+2 \sqrt {a +b}\, \sqrt {b \left (\coth \left (x \right )-1\right )^{2}+2 b \left (\coth \left (x \right )-1\right )+a +b}}{\coth \left (x \right )-1}\right )}{2 \sqrt {a +b}}\) | \(114\) |
default | \(\frac {\ln \left (\frac {2 a +2 b -2 b \left (1+\coth \left (x \right )\right )+2 \sqrt {a +b}\, \sqrt {b \left (1+\coth \left (x \right )\right )^{2}-2 b \left (1+\coth \left (x \right )\right )+a +b}}{1+\coth \left (x \right )}\right )}{2 \sqrt {a +b}}+\frac {\ln \left (\frac {2 a +2 b +2 b \left (\coth \left (x \right )-1\right )+2 \sqrt {a +b}\, \sqrt {b \left (\coth \left (x \right )-1\right )^{2}+2 b \left (\coth \left (x \right )-1\right )+a +b}}{\coth \left (x \right )-1}\right )}{2 \sqrt {a +b}}\) | \(114\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 333 vs.
\(2 (23) = 46\).
time = 0.40, size = 1298, normalized size = 44.76 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth {\left (x \right )}}{\sqrt {a + b \coth ^{2}{\left (x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 196 vs.
\(2 (23) = 46\).
time = 0.48, size = 196, normalized size = 6.76 \begin {gather*} -\frac {\frac {\log \left ({\left | -{\left (\sqrt {a + b} e^{\left (2 \, x\right )} - \sqrt {a e^{\left (4 \, x\right )} + b e^{\left (4 \, x\right )} - 2 \, a e^{\left (2 \, x\right )} + 2 \, b e^{\left (2 \, x\right )} + a + b}\right )} {\left (a + b\right )} + \sqrt {a + b} {\left (a - b\right )} \right |}\right )}{\sqrt {a + b}} + \frac {\log \left ({\left | -\sqrt {a + b} e^{\left (2 \, x\right )} + \sqrt {a e^{\left (4 \, x\right )} + b e^{\left (4 \, x\right )} - 2 \, a e^{\left (2 \, x\right )} + 2 \, b e^{\left (2 \, x\right )} + a + b} + \sqrt {a + b} \right |}\right )}{\sqrt {a + b}} - \frac {\log \left ({\left | -\sqrt {a + b} e^{\left (2 \, x\right )} + \sqrt {a e^{\left (4 \, x\right )} + b e^{\left (4 \, x\right )} - 2 \, a e^{\left (2 \, x\right )} + 2 \, b e^{\left (2 \, x\right )} + a + b} - \sqrt {a + b} \right |}\right )}{\sqrt {a + b}}}{2 \, \mathrm {sgn}\left (e^{\left (2 \, x\right )} - 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.74, size = 23, normalized size = 0.79 \begin {gather*} \frac {\mathrm {atanh}\left (\frac {\sqrt {b\,{\mathrm {coth}\left (x\right )}^2+a}}{\sqrt {a+b}}\right )}{\sqrt {a+b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________